home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c / 773 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.1 KB

  1. Path: solon.com!not-for-mail
  2. From: richb@sentor.com.au (Richard Browne)
  3. Newsgroups: comp.lang.c.moderated,comp.std.c
  4. Subject: C9X proposal for snprintf
  5. Date: 21 Apr 1996 12:12:27 -0500
  6. Organization: Sentor Communications
  7. Sender: clc@solutions.solon.com
  8. Approved: clc@solutions.solon.com
  9. Message-ID: <4ldq9r$5gf@solutions.solon.com>
  10. NNTP-Posting-Host: solutions.solon.com
  11. X-Newsreader: Forte Free Agent 1.0.82
  12.  
  13. This message is a call for interest/support in a proposal to C9X for
  14. the inclusion of an 'snprintf' function in the C standard. Many
  15. compilers already provide this function, but not all.
  16.  
  17. For those who aren't aware, the sprintf 'problem' is similar to the
  18. famous gets, where the functions do not perform overflow checking on
  19. the user supplied buffer.. leading to the possibility of random memory
  20. overwrites and corruption. snprintf is analogous to sprintf. The
  21. difference being that snprintf takes an extra parameter that specifies
  22. the sizeof the format conversion buffer, and can thus guarantee that
  23. the buffer will never overflow.
  24.  
  25. If you support this proposal, please respond here ot to direct to my
  26. email address.
  27.  
  28. Richard Browne.
  29. richb@sentor.com.au
  30.